import request from '@/utils/request'

// 提醒事项统计

export function getTodoStats() {
  return request({
    url: '/system/nurse/remindCount',
    method: 'post'
  })
}

// 获取登入人的病区列表
export function getWardList() {
  return request({
    url: '/system/nurse/ward',
    method: 'get'
  })
}

// 查询床位列表
export function getBedsList(query) {
  return request({
    url: '/system/nurse/beds',
    method: 'post',
    data: query
  })
}

// 查询入院详情
export function getAdmissionDetail(query) {
  return request({
    url: '/system/nurse/admissionDetail',
    method: 'get',
    params: query
  })
}

// 患者下拉
export function getPatientList(query) {
  return request({
    url: '/system/nurse/patienttodos',
    method: 'post',
    data: query
  })
}

// 分配床位
export function assignBed(data) {
  return request({
    url: '/system/nurse/assignBed',
    method: 'post',
    data
  })
}

// 转移床位
export function changeBed(data) {
  return request({
    url: '/system/nurse/changeBed',
    method: 'post',
    data
  })
}

// 退床
export function dischargeBed(data) {
  return request({
    url: '/system/nurse/retreatBed',
    method: 'post',
    data
  })
}